﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Usr.Application.Contracts.Dtos.Warehouse
{
    /// <summary>
    /// 订单商品信息
    /// </summary>
    public class OrderGoodsDto
    {
        /// <summary>
        /// 订单商品记录ID
        /// </summary>
        public long OrderGoodsId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public long GoodsId { get; set; }  
        
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 规格ID
        /// </summary>
        public long SizeId { get; set; }

        /// <summary>
        /// 规格名称
        /// </summary>
        public string SizeName { get; set; }
        
        /// <summary>
        /// 商品类型
        /// </summary>
        public int GoodsType { get; set; }

        /// <summary>
        /// 是否是第三方商品
        /// </summary>
        public bool IsThirdParties { get; set; }

        /// <summary>
        /// 代理积分
        /// </summary>
        public int ProxyIntegral { get; set; }

        /// <summary>
        /// 购物积分
        /// </summary>
        public int ShoppingIntegral { get; set; }

        /// <summary>
        /// 商品数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 是否使用了抵扣券
        /// </summary>
        public bool UseDeductionCoupons { get; set; } = false;

        /// <summary>
        /// 对应云仓商品ID
        /// </summary>
        public long WarGoods { get; set; }

        /// <summary>
        /// 对应云仓规格ID
        /// </summary>
        public long WarSize { get; set; }

        /// <summary>
        /// 对应云仓规格商品数量，仅对直营商品有效
        /// </summary>
        public int WarCount { get; set; }

        /// <summary>
        /// 对应云仓总数
        /// </summary>
        public int TotalWarCount { get;set; }

        /// <summary>
        /// 对应云仓规格商品总的数量
        /// </summary>
        public int LastWarCount { get; set; }

        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 业绩价格
        /// </summary>
        public decimal PerformancePrice { get; set; }

        /// <summary>
        /// 是否进行第三方直推返佣
        /// </summary>
        public bool IsThirdCoupons { get; set; }

        /// <summary>
        /// 第三方商品返佣金额
        /// </summary>
        public decimal ThirdCommission { get; set; }

        /// <summary>
        /// 商品价格
        /// </summary>
        public List<ProductPriceDto> ProductPrices { get; set; }

    }

    /// <summary>
    /// 商品价格
    /// </summary>
    public class ProductPriceDto
    {
        /// <summary>
        /// 用户等级
        /// </summary>
        public int UserLevel { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        public Decimal Price { get; set; }

        /// <summary>
        /// 积分价格
        /// </summary>
        public int IntegralPrice { get; set; }
    }
}
